package org.raymond.icloud.apis.admin.vo.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.raymond.icloud.apis.admin.entity.enums.SexEnum;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SysUserVO implements Serializable {
    @ApiModelProperty(name="userId", value = "用户Id", dataType="Long")
    private Long id;

    @ApiModelProperty(name="username", value = "用户名称", dataType="String")
    @NotEmpty(message = "username不能为空")
    private String username;

    @ApiModelProperty(name="password", value = "密码", dataType="String")
    @NotEmpty(message = "password不能为空")
    private String password;

    @ApiModelProperty(name="email", value = "邮箱", dataType="String")
    private String email;

    @ApiModelProperty(name="mobilePrefix", value = "手机号前缀", dataType="String")
    private String mobilePrefix;

    @ApiModelProperty(name="mobile", value = "手机号", dataType="String")
    private String mobile;

    @ApiModelProperty(name="sex", value = "性别, 0-secret,1-male,2-female", dataType="String")
    private SexEnum sex;

    @ApiModelProperty(name="birthday", value = "生日", dataType="Date")
    private Date birthday;

    @ApiModelProperty(name="state", value = "状态, 0-正常,1-停用", dataType="Integer")
    private Integer state;
}
